<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
  <title><?php echo $title ? ($title . ' - ' . SITE_NAME) : SITE_NAME; ?></title>
<?php //include_javascript();?>
  <script src="jquery.js" type="text/javascript"></script>
<?php //include_stylesheet();?>
  <link rel="stylesheet" type="text/css" href="content/theme/<?php echo THEME;?>/style.css" />
</head>
<body>
<?php //body_start();?>
<?php include 'include/debug_top.php';?>
<div id="wrap">
  <div id="header">
    <div id="banner"><span><?php echo SITE_NAME;?></span></div>
    <div id="navigation">
      <ul>
        <li><a href="./">首页</a></li>
<?php foreach (get_pages_by_parent_id() as $nav_page) { ?>
        <li><a href="<?php echo url('?module=page&page_id=' . $nav_page['id']);?>"><?php echo $nav_page['title'];?></a></li>
<?php }?>
<?php $first_category = db_fetch("select * from category where parent_id = '0' and status = 'visiable' order by sort_order desc");
  if ($first_category) {
?>
        <li><a href="<?php echo url('?module=category&category_id=' . $first_category['id']);?>">产品展示</a></li>
<?php
  }
?>
        <li><a href="<?php echo url('?module=message');?>">留言簿</a></li>
      </ul>
    </div>
  </div>
  <div id="content">